package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.example.entity.Store;

public interface StoreMapper {
    @Insert("insert into storage_tbl(commodity_code,count) values(#{commodityCode},#{count})")
    int insert(Store record);
    @Update("update storage_tbl set count = count + #{count} where commodity_code = #{commodityCode}")

    int update(Store record);
}
